home *** CD-ROM | disk | FTP | other *** search
- on setPuppet x,y,reg
- -- Copyright 1995 Interactive Media Design, Inc.
- -- x & y values are start sprite number and end sprite number that
- -- are affected. x may be substituted for a list. ie. [2,7,9] in
- -- this case, y is ignored, but must have a value in that position.
- -- reg - used for tracking what sprites have been puppeted. Value is 1 or 2.
- -- Default value is 2. spritePuppet1 list is used for tracking sprites puppeted
- -- within a small section. ie. a few frames. spritePuppet2 is used for sprites
- -- that are puppeted for the duration of the movie.
- global spritePuppet1, spritePuppet2
- if voidP(reg) then
- set reg = 1
- end if
- if listP(x) then
- repeat with z in x
- puppetSprite z, TRUE
- add value("spritePuppet" & reg), z
- end repeat
- else
- repeat with z = x to y
- puppetSprite z, TRUE
- add value("spritePuppet" & reg), z
- end repeat
- end if
- end